/*
 * @Author: wujian
 * @Date: 2023-12-25 17:14:59
 * @LastEditors: wujian
 * @LastEditTime: 2023-12-25 17:51:15
 * @FilePath: \qiankun\vue-project\vite.config.js
 * @Description:
 * @email: 281919544@qq.com
 * Copyright (c) 2023 by wujian, All Rights Reserved.
 */
import { fileURLToPath, URL } from 'node:url';

import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
//https://vitejs.dev/config/
export default defineConfig({
  build: {
    outDir:"./build/main"
  },
 
  plugins: [vue()],
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))
    }
  },
  server: {
    open: true, // 自动启动浏览器
    host: '0.0.0.0', // localhost
    port: 9002 // 端口号
  }
});
